package com.ruoyi.finance.service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.finance.domain.TVoucherDetail;
import com.ruoyi.finance.domain.vo.CredentialRollupVo;

import javax.servlet.http.HttpServletResponse;

/**
 * 凭证明细Service接口
 * 
 * @author ruoyi
 * @date 2025-02-26
 */
public interface ITVoucherDetailService extends IService<TVoucherDetail>
{
    /**
     * 查询凭证明细
     * 
     * @param voucherDetailId 凭证明细主键
     * @return 凭证明细
     */
    public TVoucherDetail selectTVoucherDetailByVoucherDetailId(Long voucherDetailId);

    /**
     * 查询凭证明细列表
     * 
     * @param tVoucherDetail 凭证明细
     * @return 凭证明细集合
     */
    public List<TVoucherDetail> selectTVoucherDetailList(TVoucherDetail tVoucherDetail);

    /**
     * 新增凭证明细
     * 
     * @param tVoucherDetail 凭证明细
     * @return 结果
     */
    public int insertTVoucherDetail(TVoucherDetail tVoucherDetail);

    /**
     * 修改凭证明细
     * 
     * @param tVoucherDetail 凭证明细
     * @return 结果
     */
    public int updateTVoucherDetail(TVoucherDetail tVoucherDetail);

    /**
     * 批量删除凭证明细
     * 
     * @param voucherDetailIds 需要删除的凭证明细主键集合
     * @return 结果
     */
    public int deleteTVoucherDetailByVoucherDetailIds(Long[] voucherDetailIds);

    /**
     * 删除凭证明细信息
     * 
     * @param voucherDetailId 凭证明细主键
     * @return 结果
     */
    public int deleteTVoucherDetailByVoucherDetailId(Long voucherDetailId);

    Map<String, Object> selectCredentialRollupList(CredentialRollupVo credentialRollupVo);

    void export(HttpServletResponse response, CredentialRollupVo credentialRollupVo);

//    public List<CredentialRollupVo> selectCredentialRollupList(CredentialRollupVo credentialRollupVo);
}
